package com.wenjie.original.entity.vo.SysDictData;

import com.wenjie.original.entity.SysDictData;
import com.wenjie.original.entity.common.vo.IResVo;
import com.wenjie.original.entity.common.vo.ISelVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class SysDictDataVo {

    @Data
    public static class SelVo extends SysDictData implements ISelVo<SysDictData> {
        @ApiModelProperty("当前页")
        private Integer pn = 1;

        @ApiModelProperty("页数")
        private Integer ps = 10;

        @Override
        @NotBlank(message = "字典标签不能为空")
        @Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符")
        public String getDictLabel() {
            return super.getDictLabel();
        }

        @Override
        @NotBlank(message = "字典键值不能为空")
        @Size(min = 0, max = 100, message = "字典键值长度不能超过100个字符")
        public String getDictValue() {
            return super.getDictValue();
        }

        @Override
        @NotBlank(message = "字典类型不能为空")
        @Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符")
        public String getDictType() {
            return super.getDictType();
        }

        @Override
        @Size(min = 0, max = 100, message = "样式属性长度不能超过100个字符")
        public String getCssClass() {
            return super.getCssClass();
        }
    }

    @Data
    public static class ResVo extends SysDictData implements IResVo<SysDictData> {

    }
}
